<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>选择器2</title>
    <style>
        [class$=k]{
            color: lime;
        }
    </style>
</head>
<body>
    <div class="test">属性选择器1</div>
    <div class="bank">属性选择器2</div>
    <div>属性选择器3</div>
</body>
</html>